<?php
defined('JOC') or die;
/**
 * Description of user
 *
 * @author jcamelis
 */
class user 
{
  //put your code here
  private $role = 0 ;
  
  function __construct()
  {
    session_name('joc-cms');
    session_start();
    
    //until User class will be ready, always log as admin 
    $this->role = 1 ;
  }
  function isAdmin()
  {
		return $this->role == 1 ? true : false ;  	
  }
  function getRole()
  {
		return $this->role ;  
  }
}

